←Select platform

SetStringValue(DicomElement,string[],DicomCharacterSetType) Method

Summary

Sets the string value(s) of a Data Element.

Syntax
C#
VB
C++
Java
public bool SetStringValue( 
   DicomElement element, 
   string[] value, 
   DicomCharacterSetType characterSet 
) 
Public Overloads Function SetStringValue( _ 
   ByVal element As DicomElement, _ 
   ByVal value() As String, _ 
   ByVal characterSet As DicomCharacterSetType _ 
) As Boolean 
public boolean setStringValues(DicomElement element, String[] value) 
public: 
bool SetStringValue(  
   DicomElement^ element, 
   array<String^>^ value, 
   DicomCharacterSetType characterSet 
)  

Parameters

element
An item in the Data Set.

value
Character string that contains the string value(s) to set. If you want to set multiple values in the Value Field, put all string values in this array.

characterSet
Character set to use when inserting the input string.

Return Value

true if the string value(s) were set successfully. false if could not set the string value(s) of the Data Element.

Remarks

If more than one value is stored in the Value Field of the Data Element, you must set all values at the same time. This method can be called only if the Value Representation of the Data Element is:

For more information about Value Representations, refer to Default Value Representation Table.

Example

For an example, refer to SetStringValue

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom Assembly